import React, { Component } from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Login from "./pages/Login/login";
import Admin from "./pages/Admin/admin";
export default class App extends Component {
  render() {
    return (
      <Router>
        <Routes>
          <Route path="/login" element={<Login />}></Route>
          <Route path="/*" element={<Admin />}></Route>
        </Routes>
      </Router>
    );
  }
}
